import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Error from '@/components/error/error'

import Abnormal from '@/components/abnormal/function-abnormal'
import Advise from '@/components/advise/product-advise'
import Myfeedback from '@/components/history/my-feedback'
import Others from '@/components/others/others'
import AbnormalDetails from '@/components/abnormal/abnormal-details'

Vue.use(Router)

export default new Router({
  routes: [
    {
      name: 'Home',
      path: '/',
      component: Home
    },
    {
      name: 'Error',
      path: '/error',
      component: Error
    },
    {
      name: 'Myfeedback',
      path: '/myfeedback',
      component: Myfeedback
    },
    {
      name: 'Abnormal',
      path: '/abnormal',
      component: Abnormal
    },
    {
      name: 'Advise',
      path: '/advise',
      component: Advise
    },
    {
      name: 'Others',
      path: '/others',
      component: Others
    },
		{
      name: 'Home',
      path: '/home',
      component: Home
    },
    {
      name: 'Abnormal-details',
      path: '/abnormal/details',
      component: AbnormalDetails
    }
  ]
})
